package cn.t.keycloak.plugin.login.jpa;

import org.keycloak.connections.jpa.entityprovider.JpaEntityProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collections;
import java.util.List;

/**
 * 用户已认证手机 - 自定义扩展
 * @author 陶敏麒
 * @date 2023/11/22 14:22
 */
public class VerifyPhoneJpaEntityProvider implements JpaEntityProvider {

    private static final Logger log = LoggerFactory.getLogger(VerifyPhoneJpaEntityProvider.class);

    @Override
    public List<Class<?>> getEntities() {
        return Collections.singletonList(VerifyPhoneEntity.class);
    }

    @Override
    public String getChangelogLocation() {
        return "META-INF/changelog/verify-phone-changelog.xml";
    }

    @Override
    public String getFactoryId() {
        return VerifyPhoneJpaEntityProviderFactory.PROVIDER_ID;
    }

    @Override
    public void close() {

    }
}
